package com.hllxd.hism.star.basic.service.model.dapan;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 大盘业务最新值，比较值entity
 * @author lihaolong
 * @date 2018-10-31 16:13
 **/
@Data
public class DapanCountEntity {
    public String id;
    /** 最新值 */
    public Object valueCount;
    /** 较前1日 */
    public Double comPreCount;
    /** 较前7日 */
    public Double comAvgCount;
    /** 数组长度 */
    public int listCountSize;

    public static DapanCountEntity build(String id,
                                         Double comPreCount,Double comAvgCount,BigDecimal valueCount,int listCountSize){
        DapanCountEntity thiz = new DapanCountEntity();
        thiz.setId(id);
        thiz.setComAvgCount(comAvgCount);
        thiz.setComPreCount(comPreCount);
        thiz.setValueCount(valueCount);
        thiz.setListCountSize(listCountSize);
        return thiz;
    }

    public static DapanCountEntity build2(Double comPreCount,Double comAvgCount,Object valueCount){
        DapanCountEntity thiz = new DapanCountEntity();
        thiz.setComAvgCount(comAvgCount);
        thiz.setComPreCount(comPreCount);
        thiz.setValueCount(valueCount);
        return thiz;
    }
}
